import React, { Component } from 'react'
import {Link,Route} from 'react-router-dom';
import Home from './pages/home';
import About from './pages/about';
import '/public/bootstrap.min.css'
export default class App extends Component {
  render() {
    return (
      <div className="container">
        <h1>www</h1>
        <div className="row">
          <div className="col-3">
            <div className="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
              <Link  className="nav-link list-group-item-action" to="/home">首页</Link>
              <Link  className="nav-link list-group-item-action" to="/about">关于</Link>
            </div>
          </div>
          <div className="col-9">
            <div className="tab-content" id="v-pills-tabContent">
              {/*注册路由 */}
              <Route path="/home" component={Home}></Route>
              <Route path="/about" component={About}></Route>
            </div>
          </div>
        </div>
      </div>
    )
  }
}
